package core.social
{
public class DebugSocialService implements ISocialService
{
	//==========================================================================
	//  Public methods
	//==========================================================================
	public function initialize():void
	{
		
	}
	
	public function DebugSocialService()
	{
	}
    
    /**
     * 调用购买货币接口 
     * 
     */    
    public function addCash():void
    {
        
    }
    /**
     * 获取社交网络货币
     *  
     * @param callBack
     * 
     */    
    public function getSocialCash(callBack:Function):void
    {
        if (callBack != null) 
        {
            callBack(100000);
            return;
        }
    }
    
    private var friendList:Object;
	
	public function getFriendList(callBack:Function):void
	{        
        if (friendList && callBack != null)
        {
            callBack(friendList);
            return;
        }
        callBack({});
	}
	
	public function getSocialUserInfo(socialID:String, callBack:Function):void
	{
		//SinaSocialDataUtil.getData(socialID, callBack);
		if (callBack != null)
		{
			callBack({ first_name:"ABC", last_name:"" });
		}
	}
	
	public function cancelGetSocialUserInfo(socialID:String, callBack:Function):void
	{
		//SinaSocialDataUtil.disposeRequest(socialID, callBack);
	}
	
	public function buyWithCash(callBack:Function, cancelCallBack:Function, ...args):void
	{
		callBack({result:true, item_id:args[0]});
	}
	
	public function inviteFriend():void
	{
	}
	
	public function sendGift(...args):void
	{
		trace("f_send_gift", args[0]);
	}
	
	public function post(...args):void
	{
	}
	
	public function addGetGiftCallBack(handler:Function):void
	{
		
	}
}
}